package com.isunland.managesystem.entity;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class Task implements Serializable {
  public static final String SIGN = "sign";
  public static final String AUTH = "auth";
  public static final String CONFIRM = "confirm";
  public static final String DEAL = "deal";
  public static final String DEFAULT = "default";
  public static final String APPLY = "apply";
  public static final int MY_TODO_LIST = 0;// 待办事宜
  public static final int MY__DONE_LIST = 1;// 已办事宜
  public static final int MY_REQUEST = 2;// 我的请求
  public static final int MY_COMPLETED = 3;// 我的办结
  private String id;
  private String name;
  private String subject;
  private Object parentTaskId;
  private String description;
  private String priority;
  private String createTime;
  private String createtime;
  private String owner;
  private String assignee;
  private String delegationState;
  private String executionId;
  private String processInstanceId;
  private String processDefinitionId;
  private String taskDefinitionKey;
  private Object dueDate;
  private Integer revision;
  private String processName;
  private Object taskUrl;
  private String status;
  private Object type;
  private Object allowDivert;
  private Object ischeck;
  private Object defId;
  private Object allowBatchApprove;
  private String runId;
  private Long typeId;
  private Object typeName;
  private Object orgName;
  private Object tagIds;
  private String creatorId;
  private String creator;
  private Boolean isAgent;
  private Boolean isDivert;
  private Integer taskStatus;
  private Object codebefore;
  private Integer hasRead;
  private String businessKey;
  private String actInstId;
  private String userNodeType;// 用于待办时根据环节不同显示不同按钮."审核环节_会签:`sign`
  // 审核环节_独裁:`auth` 确认环节:`confirm`
  // 业务处理环节:`deal`"申请环节apply.默认审批default.

  private String radio1Name;
  private String radio2Name;
  private String radio3Name;
  private String businesscontent;

  private int mMenuId;// 类型.待办,已办灯.

  public boolean isToDo() {
    if (mMenuId == MY_TODO_LIST) {
      return true;
    } else {
      return false;
    }
  }

  public int getmMenuId() {
    return mMenuId;
  }

  public void setmMenuId(int mMenuId) {
    this.mMenuId = mMenuId;
  }

  /**
   * 待办使用id,其他使用taskId.
   */
  public String getMyTaksId() {
    if (mMenuId == MY_TODO_LIST) {
      return id;
    } else {

      return runId;
    }
  }

  //	public void setMyTaksId() {
  //		if (mMenuId == MY_TODO_LIST) {
  //			this.myTaksId = id;
  //		} else {
  //
  //			this.myTaksId = runId;
  //		}
  //	}

  public String getCreatetime() {
    return createtime;
  }

  public void setCreatetime(String createtime) {
    this.createtime = createtime;
  }

  public String getRadio1Name() {
    return radio1Name;
  }

  public void setRadio1Name(String radio1Name) {
    this.radio1Name = radio1Name;
  }

  public String getRadio2Name() {
    return radio2Name;
  }

  public void setRadio2Name(String radio2Name) {
    this.radio2Name = radio2Name;
  }

  public String getRadio3Name() {
    return radio3Name;
  }

  public void setRadio3Name(String radio3Name) {
    this.radio3Name = radio3Name;
  }

  private Map<String, Object> additionalProperties = new HashMap<String, Object>();

  public String getUserNodeType() {
    return userNodeType;
  }

  public void setUserNodeType(String userNodeType) {
    this.userNodeType = userNodeType;
  }

  /**
   * @return The id
   */
  public String getId() {
    return id;
  }

  /**
   * @param id The id
   */
  public void setId(String id) {
    this.id = id;
  }

  public String getBusinessKey() {
    return businessKey;
  }

  public void setBusinessKey(String businessKey) {
    this.businessKey = businessKey;
  }

  /**
   * @return The name
   */
  public String getName() {
    return name;
  }

  /**
   * @param name The name
   */
  public void setName(String name) {
    this.name = name;
  }

  /**
   * @return The subject
   */
  public String getSubject() {
    return subject;
  }

  /**
   * @param subject The subject
   */
  public void setSubject(String subject) {
    this.subject = subject;
  }

  /**
   * @return The parentTaskId
   */
  public Object getParentTaskId() {
    return parentTaskId;
  }

  /**
   * @param parentTaskId The parentTaskId
   */
  public void setParentTaskId(Object parentTaskId) {
    this.parentTaskId = parentTaskId;
  }

  /**
   * @return The description
   */
  public String getDescription() {
    return description;
  }

  /**
   * @param description The description
   */
  public void setDescription(String description) {
    this.description = description;
  }

  /**
   * @return The priority
   */
  public String getPriority() {
    return priority;
  }

  /**
   * @param priority The priority
   */
  public void setPriority(String priority) {
    this.priority = priority;
  }

  /**
   * @return The createTime
   */
  public String getCreateTime() {
    return createTime;
  }

  /**
   * @param createTime The createTime
   */
  public void setCreateTime(String createTime) {
    this.createTime = createTime;
  }

  /**
   * @return The owner
   */
  public String getOwner() {
    return owner;
  }

  /**
   * @param owner The owner
   */
  public void setOwner(String owner) {
    this.owner = owner;
  }

  /**
   * @return The assignee
   */
  public String getAssignee() {
    return assignee;
  }

  /**
   * @param assignee The assignee
   */
  public void setAssignee(String assignee) {
    this.assignee = assignee;
  }

  /**
   * @return The delegationState
   */
  public String getDelegationState() {
    return delegationState;
  }

  /**
   * @param delegationState The delegationState
   */
  public void setDelegationState(String delegationState) {
    this.delegationState = delegationState;
  }

  /**
   * @return The executionId
   */
  public String getExecutionId() {
    return executionId;
  }

  /**
   * @param executionId The executionId
   */
  public void setExecutionId(String executionId) {
    this.executionId = executionId;
  }

  /**
   * @return The processInstanceId
   */
  public String getProcessInstanceId() {
    return processInstanceId;
  }

  /**
   * @param processInstanceId The processInstanceId
   */
  public void setProcessInstanceId(String processInstanceId) {
    this.processInstanceId = processInstanceId;
  }

  /**
   * @return The processDefinitionId
   */
  public String getProcessDefinitionId() {
    return processDefinitionId;
  }

  /**
   * @param processDefinitionId The processDefinitionId
   */
  public void setProcessDefinitionId(String processDefinitionId) {
    this.processDefinitionId = processDefinitionId;
  }

  /**
   * @return The taskDefinitionKey
   */
  public String getTaskDefinitionKey() {
    return taskDefinitionKey;
  }

  /**
   * @param taskDefinitionKey The taskDefinitionKey
   */
  public void setTaskDefinitionKey(String taskDefinitionKey) {
    this.taskDefinitionKey = taskDefinitionKey;
  }

  /**
   * @return The dueDate
   */
  public Object getDueDate() {
    return dueDate;
  }

  /**
   * @param dueDate The dueDate
   */
  public void setDueDate(Object dueDate) {
    this.dueDate = dueDate;
  }

  /**
   * @return The revision
   */
  public Integer getRevision() {
    return revision;
  }

  /**
   * @param revision The revision
   */
  public void setRevision(Integer revision) {
    this.revision = revision;
  }

  /**
   * @return The processName
   */
  public String getProcessName() {
    return processName;
  }

  /**
   * @param processName The processName
   */
  public void setProcessName(String processName) {
    this.processName = processName;
  }

  /**
   * @return The taskUrl
   */
  public Object getTaskUrl() {
    return taskUrl;
  }

  /**
   * @param taskUrl The taskUrl
   */
  public void setTaskUrl(Object taskUrl) {
    this.taskUrl = taskUrl;
  }

  /**
   * @return The status
   */
  public String getStatus() {
    return status;
  }

  /**
   * @param status The status
   */
  public void setStatus(String status) {
    this.status = status;
  }

  /**
   * @return The type
   */
  public Object getType() {
    return type;
  }

  /**
   * @param type The type
   */
  public void setType(Object type) {
    this.type = type;
  }

  /**
   * @return The allowDivert
   */
  public Object getAllowDivert() {
    return allowDivert;
  }

  /**
   * @param allowDivert The allowDivert
   */
  public void setAllowDivert(Object allowDivert) {
    this.allowDivert = allowDivert;
  }

  /**
   * @return The ischeck
   */
  public Object getIscheck() {
    return ischeck;
  }

  /**
   * @param ischeck The ischeck
   */
  public void setIscheck(Object ischeck) {
    this.ischeck = ischeck;
  }

  /**
   * @return The defId
   */
  public Object getDefId() {
    return defId;
  }

  /**
   * @param defId The defId
   */
  public void setDefId(Object defId) {
    this.defId = defId;
  }

  /**
   * @return The allowBatchApprove
   */
  public Object getAllowBatchApprove() {
    return allowBatchApprove;
  }

  /**
   * @param allowBatchApprove The allowBatchApprove
   */
  public void setAllowBatchApprove(Object allowBatchApprove) {
    this.allowBatchApprove = allowBatchApprove;
  }

  /**
   * @return The runId
   */
  public String getRunId() {
    return runId;
  }

  /**
   * @param runId The runId
   */
  public void setRunId(String runId) {
    this.runId = runId;
  }

  /**
   * @return The typeIdg
   */
  public Long getTypeId() {
    return typeId;
  }

  /**
   * @param typeId The typeId
   */
  public void setTypeId(Long typeId) {
    this.typeId = typeId;
  }

  /**
   * @return The typeName
   */
  public Object getTypeName() {
    return typeName;
  }

  /**
   * @param typeName The typeName
   */
  public void setTypeName(Object typeName) {
    this.typeName = typeName;
  }

  /**
   * @return The orgName
   */
  public Object getOrgName() {
    return orgName;
  }

  /**
   * @param orgName The orgName
   */
  public void setOrgName(Object orgName) {
    this.orgName = orgName;
  }

  /**
   * @return The tagIds
   */
  public Object getTagIds() {
    return tagIds;
  }

  /**
   * @param tagIds The tagIds
   */
  public void setTagIds(Object tagIds) {
    this.tagIds = tagIds;
  }

  /**
   * @return The creatorId
   */
  public String getCreatorId() {
    return creatorId;
  }

  /**
   * @param creatorId The creatorId
   */
  public void setCreatorId(String creatorId) {
    this.creatorId = creatorId;
  }

  /**
   * @return The creator
   */
  public String getCreator() {
    return creator;
  }

  /**
   * @param creator The creator
   */
  public void setCreator(String creator) {
    this.creator = creator;
  }

  /**
   * @return The isAgent
   */
  public Boolean getIsAgent() {
    return isAgent;
  }

  /**
   * @param isAgent The isAgent
   */
  public void setIsAgent(Boolean isAgent) {
    this.isAgent = isAgent;
  }

  /**
   * @return The isDivert
   */
  public Boolean getIsDivert() {
    return isDivert;
  }

  /**
   * @param isDivert The isDivert
   */
  public void setIsDivert(Boolean isDivert) {
    this.isDivert = isDivert;
  }

  /**
   * @return The taskStatus
   */
  public Integer getTaskStatus() {
    return taskStatus;
  }

  /**
   * @param taskStatus The taskStatus
   */
  public void setTaskStatus(Integer taskStatus) {
    this.taskStatus = taskStatus;
  }

  /**
   * @return The codebefore
   */
  public Object getCodebefore() {
    return codebefore;
  }

  /**
   * @param codebefore The codebefore
   */
  public void setCodebefore(Object codebefore) {
    this.codebefore = codebefore;
  }

  /**
   * @return The hasRead
   */
  public Integer getHasRead() {
    return hasRead;
  }

  /**
   * @param hasRead The hasRead
   */
  public void setHasRead(Integer hasRead) {
    this.hasRead = hasRead;
  }

  public Map<String, Object> getAdditionalProperties() {
    return this.additionalProperties;
  }

  public void setAdditionalProperty(String name, Object value) {
    this.additionalProperties.put(name, value);
  }

  public String getActInstId() {
    return actInstId;
  }

  public void setActInstId(String actInstId) {
    this.actInstId = actInstId;
  }

  public String getBusinesscontent() {
    return businesscontent;
  }

  public void setBusinesscontent(String businesscontent) {
    this.businesscontent = businesscontent;
  }
}
